import request from '@/utils/request'
export default {
  search() {
    return request.post('table')
  },
  create(title, name, columns) {
    return request.post('table/create', { title, name, columns })
  },
  update(table) {
    return request.post('table/update', { table })
  },
  detail(id) {
    return request.post('table/detail', { id })
  },
  delete(id) {
    return request.post('table/delete', { id })
  },
  deleteColumn(id) {
    return request.post('table/del-column', { id })
  }
}
